﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AppiSynchro.Library.Helpers
{
    public class PipeLineHelper
    {
        public static bool Install(IInstallationPipeLine installPL, String version)
        {
            if (!installPL.Download(version))
                return false;
            if (!installPL.PreInstall())
                return false;
            if (!installPL.Install())
                return false;
            if (!installPL.PostInstall())
                return false;
            
            return true;
        }
    }
}
